package com.zjw.forum.dao;

import com.zjw.forum.model.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface UserMapper {
    int insert(User row);

    int insertSelective(User row);

    User selectByPrimaryKey(@Param("id") Long id);

    int updateByPrimaryKeySelective(User row);

    int updateByPrimaryKey(User row);
    User selectUserByUserName(@Param("username") String username);

    String selectPasswordById(@Param("id")Long id);

}